package com.bonc.modules.business.service.impl;

import com.bonc.datasource.annotation.DataSource;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bonc.common.utils.PageUtils;
import com.bonc.common.utils.Query;

import com.bonc.modules.business.dao.TbWorkOrderDetailTypeDao;
import com.bonc.modules.business.entity.TbWorkOrderDetailTypeEntity;
import com.bonc.modules.business.service.TbWorkOrderDetailTypeService;

@DataSource("data")
@Service("tbWorkOrderDetailTypeService")
public class TbWorkOrderDetailTypeServiceImpl extends ServiceImpl<TbWorkOrderDetailTypeDao, TbWorkOrderDetailTypeEntity> implements TbWorkOrderDetailTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbWorkOrderDetailTypeEntity> page = this.page(
                new Query<TbWorkOrderDetailTypeEntity>().getPage(params),
                new QueryWrapper<TbWorkOrderDetailTypeEntity>()
        );

        return new PageUtils(page);
    }

}
